package info.heidao.ww2.api.common;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: zhengheng
 * @Date: 2021-08-03 15:18
 * @Description:
 */
@Data
@Accessors(chain = true)
public class CommonResp<T> {

    private int code;

    private T data;

    /**
     * 是否有下一页：0: 没有;1: 有
     */
    @JSONField(name = "has_next_page")
    private int hasNextPage;

    @JSONField(name = "current_page_num")
    private int currentPageNum;
}
